package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MappedStatement;

import java.util.List;

/**
 * @author lubiao
 * @date 2021/4/2
 * @desc
 */
public interface Executor {

    <E> List<E> query(Configuration configuration, MappedStatement
            mappedStatement, Object... params) throws Exception;

    Integer update(Configuration configuration, MappedStatement
            mappedStatement, Object... params) throws Exception;
}
